<?php /* Smarty version Smarty-3.1.13, created on 2013-05-30 17:50:50
         compiled from "static\skin\pages\menu.tpl" */ ?>
<?php /*%%SmartyHeaderCode:2583451a7755a83cf03-94662941%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'f24264279fdb50f1d85d5e55e387b8a0cdd28163' => 
    array (
      0 => 'static\\skin\\pages\\menu.tpl',
      1 => 1368775545,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2583451a7755a83cf03-94662941',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'user' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_51a7755ad26f18_63394403',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51a7755ad26f18_63394403')) {function content_51a7755ad26f18_63394403($_smarty_tpl) {?><div id="menu">
    <ul>
        <li><a href="index.php">Home</a></li>
        <?php if (!isset($_smarty_tpl->tpl_vars['user']->value)||(isset($_smarty_tpl->tpl_vars['user']->value)&&!$_smarty_tpl->tpl_vars['user']->value->isLogged())){?>
            <li class="first"><a href="login.php">Login</a></li>
            <li><a href="register.php">Registazione</a></li>
        <?php }?>
        <li><a href="forum.php">Forum</a></li>
        <?php if (isset($_smarty_tpl->tpl_vars['user']->value)&&$_smarty_tpl->tpl_vars['user']->value->isLogged()){?>
            <li><a href="profile.php?username=<?php echo $_smarty_tpl->tpl_vars['user']->value->username;?>
">Profilo</a></li>
        <?php }?>
        <?php if (isset($_smarty_tpl->tpl_vars['user']->value)&&$_smarty_tpl->tpl_vars['user']->value->isLogged()&&$_smarty_tpl->tpl_vars['user']->value->isAdmin()){?>
            <li><a href="admin.php">Admin</a></li>
        <?php }?>
        <li><a href="stats.php">Statistiche</a></li>
    </ul>
    <div id="login_username"><?php if (isset($_smarty_tpl->tpl_vars['user']->value)&&$_smarty_tpl->tpl_vars['user']->value->isLogged()){?>Benvenuto, <?php echo $_smarty_tpl->tpl_vars['user']->value->getUsername();?>
 [ <a href="index.php?action=logout">logout</a> ]<?php }?></div>
</div><?php }} ?>